package services

import (
	"project/connect"
	"project/models"
)

func GetAllStudents(studentsParam map[string]interface{}) (error, []models.Student, int64) {
	err, studentsData, total := connect.GetAllStudents(studentsParam)
	return err, studentsData, total
}

func DelStudents(id string) error {
	err := connect.DelStudents(id)
	return err
}

func UpdateStudents(students models.Student) error {
	err := connect.UpdateStudents(students)
	return err
}

func AddStudents(students models.Student) error {
	err := connect.AddStudents(students)
	return err
}
